package com.wonders.hisdoctor.station.project.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wonders.hisdoctor.station.project.base.domain.DrugStorageDept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>药品库存单位字典：此表定义了具有药品库存管理功能的单位，用户定义 dao </p>
 * <p>db_table: DRUG_STORAGE_DEPT</p>
 * @author lwm
 * @date 2021/01/24
 */
@Mapper
@Repository
public interface DrugStorageDeptMapper extends BaseMapper<DrugStorageDept> {

    /**
     * 获取该机构下的所有药房药库部门信息
     *
     * @param hospitalCode 机构代码
     * @return
     */
    List<DrugStorageDept> getDrugStorageDeptsByHospitalCode(String hospitalCode);

}
